﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="vicePrinLeaveHand.aspx.cs"
    Inherits="SMSSnew.UI.vicePrinLeaveHand" %>

<link href="../../css/StyleSheet.css" rel="stylesheet" type="text/css" />
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Leave Application Handling</title>
    <style type="text/css">
        .RadGrid_WebBlue
        {
            border: 1px solid #898d8f;
            border-top: 0;
        }
        .RadGrid_WebBlue
        {
            font: 11px arial,tahoma,sans-serif;
        }
        .RadGrid_WebBlue
        {
            background: #bbc1c9;
            color: #000;
            scrollbar-face-color: #bbc1c9;
            scrollbar-highlight-color: #bbc1c9;
            scrollbar-shadow-color: #bbc1c9;
            scrollbar-3dlight-color: #d2d6db;
            scrollbar-arrow-color: #333;
            scrollbar-track-color: #d2d6db;
            scrollbar-darkshadow-color: #d2d6db;
        }
        .GridHeader_WebBlue
        {
            color: #fff;
            text-decoration: none;
        }
        .GridHeader_WebBlue
        {
            border-top: 1px solid #d8dce0;
            border-bottom: 1px solid #90979e;
            padding: 5px 3px 5px 2px;
            background: #bbc6d2 url('mvwres://Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.WebBlue.Grid.sprite.gif') 0 0 repeat-x;
            text-align: left;
        }
        .GridFooter_WebBlue
        {
            background: #e0e3e6;
            color: #333;
        }
        .GridPager_WebBlue
        {
            background: #d2d6db;
            line-height: 24px;
        }
        .PagerLeft_WebBlue
        {
            float: left;
        }
        .GridPager_WebBlue div span
        {
            color: #687a81;
        }
        .GridPager_WebBlue span
        {
            color: #929496;
        }
        .PagerRight_WebBlue
        {
            float: right;
        }
        .GridRow_WebBlue
        {
            background: #f0f2f4;
        }
    </style>
</head>
<body>
    <div class="container">
        <form id="form1" runat="server" class="well span11 text-center">
        <p align="left">
            <table width="100%">
                <tr>
                    <td align="left" colspan="4">
                        <asp:ImageButton ID="imgBtnBack" runat="server" ImageUrl="~/IMAGES/back.png" OnClick="imgBtnBack_Click"
                            ToolTip="Back" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td>
                        <p align="right">
                            <asp:Image ID="imgUserImage" runat="server" Height="40px" ImageUrl="~/IMAGES/profile-default.png" /></p>
                    </td>
                    <td align="right">
                        <p align="right">
                            <asp:Label ID="lblFullName" runat="server" Text="So and so" 
                                Font-Italic="True"></asp:Label>
                        </p>
                    </td>
                    <td align="right">
                        <asp:LinkButton ID="lnkBtnLogout" runat="server" PostBackUrl="~/UI/Login.aspx" 
                            Font-Underline="True"><h5>Logout</h5></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </p>
         
        <table width="100%" class="table container text-left">
            <tr>
                <td>
                    <asp:Panel ID="pnlReqLeave" runat="server">
                        <h4 class="text-info">
                            Requested Leaves</h4>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="pnlGridLeave" runat="server">
                        <telerik:RadGrid ID="grdRequestedLeaves" runat="server" AutoGenerateColumns="False"
                            GridLines="None" AllowPaging="True" Skin="WebBlue" OnItemCommand="grdRequestedLeaves_ItemCommand">
                            <PagerStyle AlwaysVisible="True" />
                            <MasterTableView GroupLoadMode="Client">
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Resizable="False" Visible="False">
                                    <HeaderStyle />
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="LEAVE_ID" Display="false" HeaderText="Leave ID"
                                        SortExpression="LEAVE_ID" UniqueName="leaveId">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="TEACHER_ID" Display="false" HeaderText="Teacher ID"
                                        SortExpression="TEACHER_ID" UniqueName="teacherId">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="FULL_NAME" HeaderText="Teacher" SortExpression="FULL_NAME"
                                        UniqueName="teacherName">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="START_DATE" HeaderText="Start Date" SortExpression="START_DATE"
                                        UniqueName="startDate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="END_DATE" HeaderText="End Date" SortExpression="END_DATE"
                                        UniqueName="endDate">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="DURATION" HeaderText="Duration" SortExpression="DURATION"
                                        UniqueName="duration">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="REASON" HeaderText="Reason" SortExpression="REASON"
                                        UniqueName="reason">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="LEAVE_STATUS" HeaderText="Leave Status" SortExpression="LEAVE_STATUS"
                                        UniqueName="leaveStatus" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="LEAVE_TYPE_NAME" HeaderText="Leave Type" SortExpression="LEAVE_TYPE_NAME"
                                        UniqueName="leaveType">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="LEAVE_CATEGORY" HeaderText="Leave Category" SortExpression="LEAVE_CATEGORY"
                                        UniqueName="leaveCategory">
                                    </telerik:GridBoundColumn>
                                    <%--<telerik:GridTemplateColumn UniqueName="TemplateColumnDelete">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="imgBtnDelete" runat="server" AlternateText="Delete leave" CommandName="deleteLeave"
                                                OnClientClick="javascript:if(!confirm('This action will delete the selected leave. Are you sure?')){return false;}"
                                                ImageUrl="../../IMAGES/clear.gif" ToolTip="Delete Leave" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>--%>
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumnEdit">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="changeStatus" runat="server" AlternateText="Change Status" CommandName="changeStatus"
                                                ImageUrl="../../IMAGES/edit_icon.gif" ToolTip="Change Leave Status" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <GroupByExpressions>
                                    <telerik:GridGroupByExpression>
                                        <GroupByFields>
                                            <telerik:GridGroupByField FieldAlias="Status" FieldName="LEAVE_STATUS" HeaderValueSeparator=" : " />
                                        </GroupByFields>
                                        <SelectFields>
                                            <telerik:GridGroupByField FieldAlias="Status" FieldName="LEAVE_STATUS" HeaderValueSeparator=" : " />
                                        </SelectFields>
                                    </telerik:GridGroupByExpression>
                                </GroupByExpressions>
                                <EditFormSettings>
                                    <PopUpSettings ScrollBars="None" />
                                </EditFormSettings>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="pnlChngSttus" runat="server" Visible="False">
                        <h4 class="text-info">
                            Change Leave Status</h4>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="pnlChangeStatus" runat="server" Visible="False">
                        <asp:RadioButtonList ID="rdbListStatus" runat="server" TextAlign="Left">
                            <asp:ListItem>Approve</asp:ListItem>
                            <asp:ListItem>Reject</asp:ListItem>
                        </asp:RadioButtonList>
                        <asp:Image ID="imgMedicalCerfcte" runat="server" Height="400px" Visible="False"/>
                        <br />
                        <asp:Button ID="btnCHangeOk" runat="server" class="btn btn-primary"  Text="Submit" OnClick="btnCHangeOk_Click" />
                    </asp:Panel>
                </td>
            </tr>
        </table>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        </form>
    </div>
</body>
</html>
